<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="urn:mango-project-1-0" elementFormDefault="qualified" xmlns="urn:mango-project-1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Project">
    <xs:complexType>
      <xs:sequence minOccurs="1" maxOccurs="1">
        <xs:element ref="Resources" minOccurs="1" maxOccurs="1" />
      </xs:sequence>
      <xs:attribute name="version" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>

  <xs:element name="Resources">
    <xs:complexType>
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="ResourceLocation" minOccurs="0" maxOccurs="unbounded" />
        <xs:element ref="MaterialScript" minOccurs="0" maxOccurs="unbounded" />
        <xs:element ref="CompositorScript" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:element name="ResourceLocation">
    <xs:complexType>
      <xs:attribute name="path" type="xs:string" use="required" />
      <xs:attribute name="type" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Zip" />
            <xs:enumeration value="FileSystem" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>

  <xs:element name="MaterialScript">
    <xs:complexType>
      <xs:attribute name="path" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>

  <xs:element name="CompositorScript">
    <xs:complexType>
      <xs:attribute name="path" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>
